package afterubuntu.pojo;

import java.util.HashMap;

public class Category {

    private HashMap<String, Application> applications = new HashMap<String, Application>();;
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void addApplication(Application application){
        if(!applications.containsKey(application.getDescription())){
            applications.put(application.getDescription(), application);
        }
    }

    public HashMap<String, Application> getApplications() {
        return applications;
    }

    public Application getApplication(String description){
        return applications.get(description);
    }

}
